package com.sc.VenusQueryBeta.contract.account.cundan;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CunDanBean;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *  存單明细Contract(契约)接口
 */

public interface CunDanContract {
    abstract class CunDanPresenter extends BasePresenter<ICunDanModel,ICunDanView>{
        //存单明细
        public abstract void cundan(int clientindex,String serverAddress, String projectName, int serverPort,String currencynameCN);
        //查询币种(根据账房那边排序)
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
    }
    interface ICunDanModel extends IBaseModel {
        ////存单明细
        Observable<CunDanBean> cundan(int clientindex, String serverAddress, String projectName, int serverPort,String currencynameCN);

        //查询币种(根据账房那边排序)
//        Observable<AllRoomListBean> queryAllRoomList(String serverAddress, String projectName, int serverPort);
        Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
    }
    interface ICunDanView extends IBaseActivity{
        //存单明细
        void showcundanDataSuccess(CunDanBean cunDanBean);

        void showNetworkError(Throwable throwable);

        //查币种(根据账房那边排序)
        void showqueryAllCurrencyList(CurrencyListBean currencyListBean);
    }
}
